package com.coding.springboot.demo.dao;

import com.coding.springboot.demo.entity.Taccount;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * Created by qince on 2015/8/10.
 */
@Repository
public interface TaccountRepository extends JpaRepository<Taccount,String> {
    @Query(value = "select t from Taccount t where t.name=?1")
    public Taccount findByName(String name);
}
